[PATCH] output/jsonbuilder: helper function SCJbSetPrintAsciiString
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 30 Oct 2025 10:18:15 +0000 (11:18 +0100)
committerAndreas Dolp <dev@andreas-dolp.de>
Thu, 23 Apr 2026 05:14:21 +0000 (07:14 +0200)
commit4e83182b84c91a399324ec3c3d01d6a693aeeef8
tree6e9344d7f12f9006e1cc247a120f26b776d482bd
parent6f29808602f0e6e1f2fe93ccdf68927f93b867b5
[PATCH] output/jsonbuilder: helper function SCJbSetPrintAsciiString

To replace C PrintStringsToBuffer and avoid a stack alloc
+ copy

Ticket: 8004
(cherry picked from commit 7447651fa0956ff4ce55283a51b4a9494ec8cc6a)

Origin: upstream, https://github.com/OISF/suricata/commit/5abf9b81e78476f49ab074f3a74b5840747cd069.patch
Bug: https://redmine.openinfosecfoundation.org/issues/8004
Subject: Upstream fix for CVE-2025-64331

Gbp-Pq: Name CVE-2025-64331.patch
rust/dist/rust-bindings.h
rust/src/jsonbuilder.rs
src/output-json-alert.c
src/output-json-frame.c
src/output-json-http.c
src/output-json.c